﻿using System;
using System.IO;

namespace snowflake
{
    class Program
    {
        static void Main(string[] args)
        {
            #region 雪花码
            //IdWorker idworker = new IdWorker(1);
            //for (int i = 0; i < 1000; i++)
            //{
            //    Console.WriteLine(idworker.nextId());
            //}

            //Console.ReadKey();
            #endregion 雪花码

            DirectoryInfo directoryInfo = new DirectoryInfo(@"C:\Users\Administrator\Desktop\上传测试");

            foreach (FileInfo fileInfo in directoryInfo.GetFiles()) {

                Console.WriteLine(fileInfo.Name);
            }

            Console.ReadKey();
        }
    }
}
